package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @author wu.yumin
 * @version 1.0.0
 * @Description 设置表单的操作按钮
 * @date 2021/6/16 15:53
 */
@Data
@TableName("SD_FORM_ACTION_CONF")
@Accessors(chain = true)
@ToString(callSuper = true)
@ApiModel("表单定义")
public class SdFormActionConfEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("表单标识")
    private Integer id;

    @ApiModelProperty("表单标识")
    private Integer formId;

    @ApiModelProperty("区域ID")
    private Integer areaId;

    @ApiModelProperty("操作主键")
    private Integer actionId;

    @ApiModelProperty("按钮编码")
    private String actionCode;

    @ApiModelProperty("按钮名称")
    private String actionName;

    @ApiModelProperty("触发事件")
    private String triggerFunction;

    @ApiModelProperty("显示名称")
    private String displayName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createDate;

    @ApiModelProperty("展示顺序")
    private Integer displayOrder;

    @ApiModelProperty("删除标识")
    private Integer delFlag;

    @ApiModelProperty("分片标识")
    private Integer shardingId;

}
